-- cmd_buy_hero_relic
-- Create by huanhr
-- 购买遗物

function Operation.cmd_buy_hero_relic(classId, num)
    -- 客户端先自行购买
    if not ArtifactM.buyHeroRelic(classId, num) then
        return;
    end

    -- 记录起来，需要进行同步
    v = { ["class_id"] = classId, ["num"] = num};
    SyncM.addMessage("CMD_BUY_HERO_RELIC", v);
    SyncM.startSync();
end